<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<title>理塘旅行社</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="/css/uniform.css" />
<link rel="stylesheet" href="/css/select2.css" />
<link rel="stylesheet" href="/css/unicorn.main.css" />
<link rel="stylesheet" href="/css/unicorn.grey.css" class="skin-color" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body style="min-width: 1500px;overflow:auto;">


	<div id="header">
		<h1>
			<a href="./dashboard.html">理塘旅行社</a>
		</h1>
	</div>

	<div id="user-nav" class="navbar navbar-inverse">
            <ul class="nav btn-group">
                <li class="btn btn-inverse"><a title="" href="#"><i class="icon icon-user"></i> <span class="text">个人信息</span></a></li>
                <li class="btn btn-inverse dropdown" id="menu-messages"><a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle"><i class="icon icon-envelope"></i> <span class="text">信息</span> <span class="label label-important">5</span> <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a class="sAdd" title="" href="#">新建信息</a></li>
                        <li><a class="sInbox" title="" href="#">收件箱</a></li>
                        <li><a class="sOutbox" title="" href="#">发件箱</a></li>
                        <li><a class="sTrash" title="" href="#">垃圾箱</a></li>
                    </ul>
                </li>
                <li class="btn btn-inverse"><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">设置</span></a></li>
                <li class="btn btn-inverse"><a title="" href="login.html"><i class="icon icon-share-alt"></i> <span class="text">注销</span></a></li>
            </ul>
        </div>	

	<div id="sidebar">
		
		<ul>
			<li><a href="../index.html"><i class="icon icon-home"></i> <span>首页</span></a></li>
			<li class="submenu active open"><a href="#"><i
					class="icon icon-th-list"></i> <span>用户管理</span> </a>
				<ul>
					<li class="active"><a href="/admin/findAllUser"> <span>个人用户</span> <span class="label">2</span></a></li>
					
				</ul>
			</li>
				<li class="submenu">
					<a href="#"><i class="icon icon-th-list"></i> <span>热门景点管理</span></a>
					<ul>
						<li><a href="/admin/findAllRemen">当前热门</a></li>
					</ul>
				</li>
			<li><a href="/admin/findAllYouHui"><i class="icon icon-th-list"></i> <span>优惠特价管理</span></a></li>
				<li class="submenu">
					<a href="#"><i class="icon icon-th-list"></i> <span>全部景点管理</span> </a>
					<ul>
						<li><a href="/admin/findAllTra">全部景点</a></li>
						<li class="active"><a href="/admin/findBin">回收站</a></li>
					</ul>
				</li>
		</ul>

	</div>



	<div id="content" style="height: 1000px;">
		<div id="content-header">
			<h1>个人用户</h1>
			<div class="btn-group">
				<a href="/admin/findAllUser" class="btn btn-large tip-bottom" title="用户管理"><i class="icon-user"></i></a>
				<a href="/admin/findAllComment" class="btn btn-large tip-bottom" title="评论管理"><i class="icon-comment"></i><span class="label label-important">5</span></a>
			</div>
		</div>
		<div id="breadcrumb">
			<a href="../index.html" title="回到首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="#" class="tip-bottom">用户管理</a> <a
				href="#" class="current">个人用户</a>
		</div>
		

		   
		   </br>
			&nbsp;&nbsp;<a href="#add" data-toggle="modal" class="btn btn-info" style="position:absolute; float:left;margin-left:12px;">添加用户</a>
			
			
			


		
<div class="container-fluid">
				<div class="row-fluid" >
					<div class="span12">
		<div class="widget-box">
			<div class="widget-title">
				<h5>用户信息</h5>
			</div>
			<div class="widget-content nopadding">
				<table class="table table-bordered data-table">
					
					<thead>
						<tr>
							
							<th>用户ID</th>
							<th>用户账号名</th>
							<th>用户密码</th>
							<th>用户姓名</th>
							<th>用户性别</th>
							<th>用户邮箱</th>
							<th>用户介绍</th>
							<th>状态</th>
						</tr>
					</thead>
					<tbody>																								
						<tr th:each="item:${userList}">
							<td th:text="${item.uId}"></td>
							<td th:text="${item.uAccount}"></td>
							<td th:text="${item.uPassword}"></td>
							<td th:text="${item.uName}"></td>
							<td th:text="${item.uMale}"></td>
							<td th:text="${item.uEmail}"></td>
							<td th:text="${item.uIntroduce}"></td>
							<td>
									<div class="btn-group">
									  <button class="btn btn-success btn-mini">已激活</button>
									  <button data-toggle="dropdown" class="btn btn-success btn-mini dropdown-toggle"><span class="caret"></span></button>
									  <ul class="dropdown-menu">										
										<li><a th:href="@{/admin/deleteUser(uId=*{item.uId})}">删除账号</a></li>
									  </ul>
									</div>
							</td>
							<td>
									<div class="btn-group">
									  <ul class="dropdown-menu">
										<li><a href="#update" data-toggle="modal">更新</a></li>
									  </ul>
									</div>
							</td>
						</tr>
				</table>
			</div>
		</div>
	</div>
	</div>
	</div>
				
<div id="text" class="modal hide">
	<div class="modal-header">
		<button data-dismiss="modal" class="close" type="button">×</button>
		<h3>发送短信</h3>
	</div>
	<div class="modal-body">
		<div>收件人：<input type="text"/></div>
		<div><textarea style="width: 500px; height: 200px; resize: none;"/></textarea></div>
	</div>
	
	<div class="modal-body">
		
		<div><textarea style="width: 500px; height: 50px; resize: none;"/></textarea></div>
	</div>

		<a class="btn btn-primary" style="float:right; margin-right:15px">发送</a>

	<br/>
	<br/>
</div>	


<div id="email" class="modal hide">
	<div class="modal-header">
		<button data-dismiss="modal" class="close" type="button">×</button>
		<h3>发送邮件</h3>
	</div>
	<div class="modal-body">
		<div>收件人：<input type="text"/></div>
		<div><textarea style="width: 500px; height: 200px; resize: none;"placeholder="邮件内容"/></textarea></div>
	</div>
		

		<a class="btn btn-primary" style="float:right; margin-right:15px">发送</a>
	
	<br/>	
	<br/>
</div>	


<div id="add" class="modal hide">

	<div class="row-fluid">
		<div class="span12">
			<div class="widget-box">
				<div class="widget-title">
								<span class="icon">
									<i class="icon-align-justify"></i>									
								</span>
					<h5>更新</h5>
				</div>
				<div class="widget-content nopadding">
					<form action="/admin/addUser" method="get" class="form-horizontal" />
					<div class="control-group">
						<label class="control-label">用户名</label>
						<div class="controls">
							<input type="text" name="uAccount"  class="update_wx"  style="width:100px;"/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">密码</label>
						<div class="controls">
							<input type="text" name="uPassword" class="update_wx" id="len"/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">姓名</label>
						<div class="controls">
							<input type="text" name="uName" class="update_wx" style="width:100px;"/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">介绍</label>
						<div class="controls">
							<input type="text" name="uIntroduce" class="update_wx" style="width:100px;"/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">邮箱</label>
						<div class="controls">
							<input type="text" name="uEmail" class="update_wx" style="width:150px;"/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">性別</label>
						<div class="controls">
							<label><input type="radio" name="uMale" value="男" /> 男</label>
							<label><input type="radio" name="uMale" value="女"/> 女</label>
						</div>
					</div>
					<div class="form-actions">
						<button type="submit" class="btn btn-primary">保存</button>
					</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>							

<div id="update" class="modal hide">
	
<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-align-justify"></i>									
								</span>
								<h5>更新</h5>
							</div>
							<div class="widget-content nopadding">
								<form action="#" method="get" class="form-horizontal" />																		                                                                                                                                         
									<div class="control-group">
								<label class="control-label">用户名</label>
								<div class="controls">
									<input type="text" name="uAccount"  class="update_wx" readonly="readonly" style="width:100px;"/>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">密码</label>
								<div class="controls">
									<input type="text" name="uPassword" class="update_wx" id="len"/>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">姓名</label>
								<div class="controls">
									<input type="text" name="uName" class="update_wx" style="width:100px;"/>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">自我介绍</label>
								<div class="controls">
									<input type="text" name="uIntroduce" class="update_wx" style="width:100px;"/>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">邮箱</label>
								<div class="controls">
									<input type="text" name="uEmail" class="update_wx" style="width:150px;"/>
								</div>
							</div>
						<div class="control-group">
							<label class="control-label">性別</label>
							<div class="controls">
								<label><input type="radio" name="uMale" value="男" /> 男</label>
								<label><input type="radio" name="uMale" value="女"/> 女</label>
							</div>
						</div>
						<div class="form-actions">
									<button type="submit" class="btn btn-primary">保存</button>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
</div>							
	
		

	
	</div>


	<script src="/js/my.js"></script>
	<script src="/js/check_form.js"></script>
	<script src="/js/jquery.min.js"></script>
	<script src="/js/jquery.ui.custom.js"></script>
	<script src="/js/bootstrap.min.js"></script>
	<script src="/js/jquery.uniform.js"></script>
	<script src="/js/select2.min.js"></script>
	<script src="/js/jquery.dataTables.min.js"></script>
	<script src="/js/unicorn.js"></script>
	<script src="/js/unicorn.tables.js"></script>
</body>
</html>
